<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:p="http://primefaces.org/ui"
     xmlns:a="http://xmlns.jcp.org/jsf/passthrough"
     template="TemplateShipperSpace.xhtml">
     
     <ui:define name="body2" >
     
     
     <h:form> 
    <p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />


<p:dataTable var="a" value="#{espaceUsersMB.listeStatutLivraison(2)}" >
<f:facet name="header">My Booked Shipment</f:facet>
<p:column headerText="Shipment No.">
<p:outputLabel value="#{a.declaration.idDeclaration}" />
</p:column>

<p:column headerText="Shipment Tracking ID">
<p:outputLabel value="#{a.IDVoyage}" />
</p:column>

<p:column headerText="Delivery Title">
<p:outputLabel value="#{a.declaration.offre.titre}" />
</p:column>


<p:column headerText="Delivery Status">
<p:outputLabel value="booked" />
</p:column>


<p:column headerText="Booked Date and Time">
<p:outputLabel value="#{a.date}" />
</p:column>



<p:column headerText="Country">
<p:outputLabel value="#{a.villeFrom.etat.pays.intitule}" />
</p:column>

<p:column headerText="State">
<p:outputLabel value="#{a.villeFrom.etat.intitule}" />
</p:column>

<p:column headerText="City">
<p:outputLabel value="#{a.villeFrom.intitule}" />
</p:column>

<p:column headerText="Booked Feedback Date and Time">
<p:outputLabel value=" " />
</p:column>

<p:column headerText="action">

<p:menuButton value="-Select-">
 <p:menuitem value="View" ajax="false"  action="gh"  icon="ui-icon-info"/>
  <p:menuitem value="loaded" ajax="false"  action="#{espaceUsersMB.loaded(a.idStatutLivraison)}"  icon="ui-icon-arrowthickstop-1-s"/>
  <p:menuitem value="feedback" ajax="false" action="hj"  icon=" ui-icon-comment"/>
       
</p:menuButton>
</p:column>

</p:dataTable>
</h:form> 
     
     
     
     </ui:define>
     </ui:composition>